package com.lightjet.macross.base.awf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages=
        {"com.lightjet.macross.base.feign.api","com.lightjet.macross.base.awf","com.lightjet.macross.common"},
        exclude = {org.activiti.spring.boot.SecurityAutoConfiguration.class
        //        ,SecurityAutoConfiguration.class
})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.lightjet.macross.base.feign.api")
@EnableHystrix
@EnableSwagger2
@EntityScan(basePackages = "com.lightjet.macross.base.awf.domain")
@EnableCaching
public class BaseAWFApplication {
    public static void main(String[] args)
    {
        SpringApplication.run(BaseAWFApplication.class,args);
    }
}
